<template>
  <div class="wallet">
    <div class="money">
      <div class="moneyDiv">
        <p>
          <span>{{ userStore.moneyUnit }}</span> {{ money }}
        </p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
const userStore = useUserStore();
const money = ref("3,50");
</script>

<style scoped lang="scss">
.wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #221b24;
  border: 0.03rem solid var(--border-color);
  border-radius: 0.6rem;
  height: 0.8rem;
  box-sizing: border-box;
  padding: 0 0.3rem;
}
.wallet .money {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wallet .money .moneyDiv {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  color: var(--theme-neutral1);
}
.wallet .money .moneyDiv p {
  display: flex;
  align-items: center;
}
.wallet .money .moneyDiv span {
  display: inline-block;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: #ffd700;
  font-size: var(--font-title2);
  margin-right: 0.1rem;
  position: relative;
  margin-right: 0.35rem;
}
.wallet .money .moneyDiv span:before {
  content: "";
  width: 0.02rem;
  height: 0.4rem;
  background: var(--border-color);
  border-radius: 0.2rem;
  position: absolute;
  right: -0.15rem;
}
</style>
